<?php

namespace App\Http\Requests\Api;

use Dingo\Api\Http\FormRequest;

class WorkOrderRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'object_id' => [
                'required',
                'integer',
            ],
            'object_type' => [
                'required',
                'in:order',
            ],
            'content' => [
                'required',
                'max:190',
            ],
            'images' => [

            ],
        ];
    }

}
